package com.example.iot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.iot.entity.AppUpgrade;
import com.example.iot.entity.PatchUpgrade;
import com.example.iot.service.AppUpgradeService;
import com.example.iot.mapper.AppUpgradeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 18364
* @description 针对表【app_upgrade】的数据库操作Service实现
* @createDate 2023-09-26 17:48:33
*/
@Service
public class AppUpgradeServiceImpl extends ServiceImpl<AppUpgradeMapper, AppUpgrade>
    implements AppUpgradeService{
    @Autowired
    AppUpgradeMapper appUpgradeMapper;
    @Override
    public AppUpgrade selectByDevID(String id,String name) {
        AppUpgrade appUpgrade=appUpgradeMapper.selectByDevID(id,name);
        return appUpgrade;
    }

    @Override
    public List<AppUpgrade> selectByDeviceID(String id) {
        List<AppUpgrade> list=appUpgradeMapper.selectByDeviceID(id);
        return list;
    }
}




